cmake_minimum_required(VERSION 3.20)
project(case24)

include(FetchContent)
FetchContent_Declare(catch
    URL https://github.com/catchorg/Catch2/releases/download/v2.13.7/catch.hpp
    URL_HASH MD5=afc1a3a08d753ec1bef9a449ff418e07
    DOWNLOAD_NO_EXTRACT ON
)
FetchContent_MakeAvailable(catch)

message(catch_SOURCE_DIR=${catch_SOURCE_DIR})

# Interface library: catch
add_library(catch INTERFACE)
target_include_directories(catch INTERFACE ${catch_SOURCE_DIR})

add_executable(main main.cpp catch.cpp)
target_link_libraries(main catch)
